home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / snoopdos_source / makefile < prev    next >
Makefile  |  1996-02-16  |  2KB  |  74 lines

  1. ###############################################################################
  2. #
  3. #    Makefile for SAS/C 6.51                    vi:ts=8
  4. #
  5. #    SnoopDos 3.0 Copyright (c) Eddy Carroll, 1994. Freely distributable.
  6. #
  7. #    See the SCOPTIONS file in this directory for default compiler options.
  8. #
  9. ###############################################################################
  10.  
  11. NAME    = snoopdos
  12. GST     = snoopdos.gst
  13.  
  14. PROFILE = # mysprofutil.o
  15. PROFOPT    = # profile
  16. DEBUG    = # DEBUG=FULL
  17.  
  18. CFLAGS  = $(PROFOPT) $(DEBUG) # Most flags are set in SCOPTIONS
  19. AFLAGS  = incdir=include:
  20. SFLAGS    = sc sd noicons map ram:map h x s f l o #nd
  21. LIBS    = lib:sc.lib lib:amiga.lib lib:debug.lib
  22.  
  23. #
  24. #    Default rules
  25. #
  26. .c.o:
  27.     sc gst=$(GST) $(CFLAGS) $*.c
  28. .a.o:
  29.     sc $(AFLAGS) underscore $*.a    # Prefix all symbols with C-style _
  30. .s.o:
  31.     sc $(AFLAGS) $*.s        # Standard "pure" assembly
  32. .h.gst:
  33.     sc makegst=$(GST) NOOBJNAME $*.c
  34. .cd.h:
  35.     catcomp $*.cd cfile $*.h
  36. #
  37. # Makefile dependencies
  38. #
  39.  
  40. all: $(GST) $(NAME) TestCalls
  41.  
  42. OBJS    = patches.o buffer.o snoopdos.o language.o settings.o    \
  43.       mainwin.o subwin.o miscwin.o  hotkey.o   patchcode.o $(PROFILE)
  44.  
  45. $(NAME): $(OBJS)
  46.     slink from lib:c.o $(OBJS) to $(NAME) $(SFLAGS) lib $(LIBS)
  47.  
  48. $(GST):        system.h
  49. snooptext.h:    snooptext.cd
  50. patchcode.o:    patchcode.s
  51. buffer.o:    buffer.c    snooptext.h    #snoopdos.h
  52. snoopdos.o:    snoopdos.c     snooptext.h    snoopdos.h
  53. language.o:    language.c    snooptext.h    #snoopdos.h
  54. #windows.o:    windows.c    snooptext.h    #snoopdos.h
  55. miscwin.o:    miscwin.c    snooptext.h    #snoopdos.h    gui.h
  56. mainwin.o:    mainwin.c    snooptext.h    #snoopdos.h    gui.h
  57. subwin.o:    subwin.c    snooptext.h    #snoopdos.h    gui.h
  58. settings.o:    settings.c    snooptext.h    #snoopdos.h
  59. hotkey.o:    hotkey.c    snooptext.h    icon.h    #snoopdos.h
  60. patches.o:    patches.c    snooptext.h    #snoopdos.h
  61.     sc gst=$(GST) $(CFLAGS) noprofile $*.c
  62.  
  63. TestCalls:    testcalls.o
  64.     slink from lib:c.o testcalls.o to TestCalls $(SFLAGS) lib $(LIBS)
  65.  
  66. testcalls.o:    testcalls.c
  67.  
  68.  
  69. blank:
  70.     catcomp snooptext.cd ctfile snooptext.ct-blank
  71.  
  72. english:
  73.     catcomp snooptext.cd translation snoop-english.ct catalog catalogs/english/snoopdos.catalog nooptim
  74.